using Eno.Application.Services;
using Eno.Domain.Entity.App;
using Microsoft.Extensions.DependencyInjection;

namespace Eno.Application;

public static class ServiceExtension
{
    public static IServiceCollection AddApplication(this IServiceCollection services)
    {
        services.AddScoped<UserService>();
        services.AddScoped<LogService>();
        services.AddScoped<ILogService, LogService>();
        services.AddScoped<AuthServices>();
        services.AddScoped<PasswordService>();
        services.AddScoped<RoleService>();
        services.AddScoped<PermissionService>();
        services.AddScoped<AppointRemoveService>();
        services.AddScoped<AppointPermissionService>();
        services.AddScoped<DepartmentService>();
        services.AddScoped<IAuthService, AuthService>();
        return services;
    }
}